package com.zyl.Ecs.auth.service;

import com.github.yulichang.base.MPJBaseService;
import com.zyl.Ecs.common.domain.auth.bean.AccountRole;
import com.zyl.Ecs.common.domain.auth.ext.AccountExt;
import com.zyl.Ecs.common.exception.EcsException;

import java.util.List;

/**
* @version v1.0
* @Package: com.zyl.Ecs.auth.service
* @ClassName: AccountRoleService
* @Description 针对表【base_account_role】的数据库操作Service实现
* @Author 翟玉龙
* @Date 2024-12-04 16:36:41
*/

public interface AccountService extends MPJBaseService<AccountRole> {

    /**
     * 添加账号角色
     * @param accountExt 账号角色信息
     * @return {@link AccountExt }
     * @throws EcsException 异常
     */
    AccountExt add(AccountExt accountExt) throws EcsException;

    /**
     * 删除账号角色
     * @param id 账号角色id
     * @return {@link AccountExt }
     * @throws EcsException 异常
     */
    AccountExt delete(Integer id) throws EcsException;

    /**
     * 更新账号角色
     * @param accountExt 账号角色信息
     * @return {@link AccountExt }
     * @throws EcsException 异常
     */
    AccountExt update(AccountExt accountExt) throws EcsException;


    /**
     * 获取账号角色列表
     * @return {@link List }<{@link AccountExt }>
     * @throws EcsException 异常
     */
    List<AccountExt> getList() throws EcsException;
}
